# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxdg-basedir
pkgver=1.2.2
pkgrel=0
pkgdesc="library for XDG base dir specification"
url="https://github.com/davmac314/libxdg-basedir"
arch="all"
license="MIT"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="https://github.com/davmac314/libxdg-basedir/releases/download/v$pkgver/libxdg-basedir-$pkgver.tar.xz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5817aea613be592d3d392401702ecd40ec949ee170365d720085919d773dc998daff65bde53d36429453dfe3944ff8666729553381c7b9ce410b009e7a5d5af5  libxdg-basedir-1.2.2.tar.xz"
